//
//  SliderViewController.swift
//  test
//
//  Created by 小新 on 2024/9/26.
//

import UIKit

class SliderViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .white
        setupUI()
    }
    func setupUI(){
        view.addSubview(slider)
        view.addSubview(xSlider)
        slider.snp.makeConstraints { make in
            make.size.equalTo(CGSize(width: 200, height: 100))
            make.centerY.equalToSuperview().offset(-30)
            make.centerX.equalToSuperview()
        }
        xSlider.snp.makeConstraints { make in
            make.size.equalTo(CGSize(width: 200, height: 100))
            make.top.equalTo(slider.snp.bottom).offset(60)
            make.centerX.equalToSuperview()
        }
        
    }
    
    lazy var slider: FCSlider = {
        let tView = FCSlider()
        tView.minimumValue = 0
        tView.maximumValue = 100
        tView.value = 50
        return tView
    }()
    
    lazy var xSlider: XAxisSlider = {
        let tView = XAxisSlider()
        tView.minimumValue = -100
        tView.maximumValue = 100
        tView.value = 0
        return tView
    }()

    

}
